home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network CD 1
/
Network CD.iso
/
tbag
/
1-10
/
tb7
/
doc-files
/
graphics.docs
< prev
next >
Wrap
Text File
|
1986-08-01
|
7KB
|
194 lines
Graphics-Doc
============================================================================
DK
Here is DK, a little display hack I have been working on for much
longer than my family would like. I still haven't got all the features
included that I would like to have, but I'm going to be away from Amy next
week and I want to get it posted. Lotsa folks out there who can improve on
it. Released to the Public Domain, distribute freely, but not for profit.
In the Credit Where Credit Is Due department, the inspiration for this
idiocy came from Leo Schwab's inane but wonderful creations -- if you
haven't downloaded them yet, search the library for his name and do so
immediately. DK is minor league stuff compared to some of his (notably
ROBOTROFF). Credit also to TDI Modula-2 version 3.00a, with which this was
compiled (it won't compile under earlier versions). A fine system. I'm
including the source in the ARC. (ARC.023 used to ARC file).
Finally, I suggest you run DK per the instructions below *FIRST*,
before you look at the source, as some of the fun is in the surprise.
INSTRUCTIONS:
1. Make sure there is nothing on your CLI screen you care about
2. After UN-ARCing, simply type `dk <return>' from the CLI
3. Be patient - it takes a minute to get going
4. Control will be returned to you when DK is done
Have fun,
Thomas H. Handel
PeopleLink -- THH --
============================================================================
DropShadow Copyright James Mackraz, 1987
Version 2, Revision 0 April 7, 1987
----- ----------------------------------------- -----
Notes for Version 2, Revision 0 April 7, 1987
Added the following from the wish list:
-A slider gadget is implemented to adjust the 3-dimensional
distance between the planes of the windows.
-A slider gadget is implemented to adjust shadow darkness. If
desired, full independent control of the shadow colors is
possible.
I had some problems with the latter, so I now increase the
task priority while the darkness slider is selected. It
has not been tested thoroughly.
----- ----------------------------------------- -----
Notes for Version 1, Revision 1 March 12,1987
When Windows are moved, created, sized, deleted, or depth-
arranged, Intuition calls layers.library. This program
intercepts those calls to determine that the shadow needs
to be recalculated. Before this version, this recalculating
and redrawing was done before Intuition got a chance to
redraw Window borders and Gadgets.
This version of DropShadow performs the work on its schedule,
and is only signaled by the code which intercepts the
layers calls. This makes for a smoother and less dangerous
implementation.
----- ----------------------------------------- -----
Notes for Version 1, Revision 0 March 1, 1987
The program on this disk creates and maintains multi-level
transparent drop shadows of windows on the Workbench screen.
The program creates its own window, and is terminated by closing
that window. The program, named DropShadow, may be run from
the CLI, or if associated with an icon, from the Workbench.
The shadows are created by attaching an additional bitplane to
the Workbench's display bit map, but doing so in a way which
is transparent to the Workbench or its application programs.
Unfortunately, this third bitplane brings the Workbench screen
to a point which causes processor cycles to be stolen by the
display generation hardware. Thus, this program is probably
best used only for demos and having fun, at least for users
without "Fast" RAM.
Enhancements which are planned include:
-The program detects that the shadow image needs to be
recalculated by monitoring the layers library. That section
of code should check that the layers activity is in fact in
the Workbench screen.
-A way to detect color changes in preferences would allow the
shadow colors to track user changes to the Workbench colors.
In the meantime, the program must be restarted to initialize the
shadow colors. Commodities Exchange can be used for this.
-A technique of unknown type is planned for user control of
the light source which casts shadows. Shadows cast according
to the position of the sun (time of day and season) are possible
but unlikely.
-This program is not yet a safe Library vector stealer. It should
refuse to exit if some other program has displaced its vectors,
lest that other program call DropShadow after it has exited.
Jim Mackraz
7101 Rainbow Drive #8
San Jose, CA 95129
=============================================================================
PING!
Another display hack... I'm surprised I haven't seen anyone do this yet.
This seemed to be the next obvious logical extension of the *ing series.
This one works especially well when run together with one of the other
display toys, like YaBoing or Robotroff.
It's up to YOU to get the window closed! (or just hit [ESC]).
Could use a lot more work, just a quick implementation of a neat idea.
By Chris Saulit, 28-Mar-87.
=============================================================================
Scat!
By Stephen R. Pietrowicz
Freely distributable as long as this notice stays in the archive.
This program was hacked from Leo Schwab's "Ing.c" program during an
afternoon that I took a break from working on ACO. Open up 2-4 windows
and move the mouse pointer around on the screen. That's it!
This program was originally uploaded to PeopleLink's Amiga Zone. The Amiga
Zone has well over 2000 members, and a library of thousands of public domain
files. If you're interested in joining us, call 800-524-0100 (voice)
or 800-826-8855 (modem).
If you enjoyed this program, join PeopleLink's Amiga Zone!
=============================================================================
FLIP
Yet another demo. This was done in assembly so it is very small. It takes a
moment but then the screen flips upside down. To exit simply press your mouse
button.
=============================================================================
MELT
This demo will make your screen melt right before your eyes. To exit pull down
the screen and click the melt window close gadget.
=============================================================================
POINTRZ
This demo shows some possibilities of animated cursors. Four windows open up.
Just click in any window and your cursor will change to the object. To exit,
click one of the four close gadgets.
=============================================================================
VIDEO
Once the files have been loaded look for talk.script and click that file then
click on play and the video will start. to exit click the mouse then click the
exit gadget.
=============================================================================
Have Fun...